package com.pearadmin.hospital.mapper;

import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import com.pearadmin.hospital.domain.HospitalSaleinfo;

/**
 * 销售记录Mapper接口
 * 
 * @author yuan
 * @date 2021-07-29
 */
@Mapper
public interface HospitalSaleinfoMapper 
{
    /**
     * 查询销售记录
     * 
     * @param id 销售记录ID
     * @return 销售记录
     */
    public HospitalSaleinfo selectHospitalSaleinfoById(Integer id);

    /**
     * 查询销售记录列表
     * 
     * @param hospitalSaleinfo 销售记录
     * @return 销售记录集合
     */
    List<HospitalSaleinfo> selectHospitalSaleinfoList(HospitalSaleinfo hospitalSaleinfo);

    /**
     * 新增销售记录
     * 
     * @param hospitalSaleinfo 销售记录
     * @return 结果
     */
    int insertHospitalSaleinfo(HospitalSaleinfo hospitalSaleinfo);

    /**
     * 修改销售记录
     * 
     * @param hospitalSaleinfo 销售记录
     * @return 结果
     */
    int updateHospitalSaleinfo(HospitalSaleinfo hospitalSaleinfo);

    /**
     * 删除销售记录
     * 
     * @param id 销售记录ID
     * @return 结果
     */
    int deleteHospitalSaleinfoById(Integer id);

    /**
     * 批量删除销售记录
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteHospitalSaleinfoByIds(String[] ids);

}
